package com.ygqh.baby.utils;

import java.math.BigDecimal;

public class TariffTateUtils {
	
	public static BigDecimal calculateTariffRate(BigDecimal valueAddedTaxRate, BigDecimal saleTaxTate){
		
		return valueAddedTaxRate.add(saleTaxTate).divide(BigDecimal.ONE.subtract(saleTaxTate),2,BigDecimal.ROUND_HALF_DOWN).multiply(new BigDecimal("0.7"));
		
	}
	
	public static void main(String[] args) {
		BigDecimal calculateTariffRate = calculateTariffRate(new BigDecimal("10"), new BigDecimal("0"));
		System.out.println(calculateTariffRate);
	}

}
